package com.renhui.videoplayer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	private Button onlyFullBtn;
	private Button supportFullBtn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_main);
		onlyFullBtn = (Button) findViewById(R.id.only_full);
		supportFullBtn = (Button) findViewById(R.id.support_full);

		onlyFullBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent vi = new Intent(MainActivity.this, VideoFullScreenActivity.class);
				vi.putExtra("video_url", "http://o6ya7p99y.bkt.clouddn.com/five_circle.mp4");
				startActivity(vi);
			}
		});

		supportFullBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				
				
				Intent vi = new Intent(MainActivity.this, VideoPlayerActivity.class);
				vi.putExtra("video_url", "http://o6ya7p99y.bkt.clouddn.com/five_circle.mp4");
				startActivity(vi);
			}
		});
	}
}
